/**
 * 写剪切板
 */
import common from '../../tnxet-common.js';
import {clipboard} from 'electron';

export default {
    name: common.event.clipboard.write,
    listen(text) {
        return new Promise((resolve, reject) => {
            clipboard.writeText(text);
            resolve();
        });
    },
}
